def exception_handler_decorator(func):
    def wrapper(*args, **kwargs):
        try:
            return func(*args, **kwargs)
        except Exception as e:
            print(f"错误: {e}")

    return wrapper


@exception_handler_decorator
def divide(a, b):
    return a / b

if __name__ == '__main__':

    (divide(10, 0))
